//
//  JT3DScrollView.h
//  JT3DScrollView
//
//  Created by Jonathan Tribouharet
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, HJTCardViewEffect) {
    HJTCardViewEffectNone,
    HJTCardViewEffectTranslation,
    HJTCardViewEffectDepth,
    HJTCardViewEffectCarousel,
    HJTCardViewEffectCards
};

typedef void(^SelectIndexBlock)(NSInteger selectIndex);


@interface HJTCardView : UIScrollView

@property (nonatomic) HJTCardViewEffect effect;

@property (nonatomic) CGFloat angleRatio;

@property (nonatomic) CGFloat rotationX;
@property (nonatomic) CGFloat rotationY;
@property (nonatomic) CGFloat rotationZ;

@property (nonatomic) CGFloat translateX;
@property (nonatomic) CGFloat translateY;

@property (nonatomic, copy) SelectIndexBlock selectBlock;

- (NSUInteger)currentPages;

- (void)loadNextPage:(BOOL)animated;
- (void)loadPreviousPage:(BOOL)animated;
- (void)loadPageIndex:(NSUInteger)index animated:(BOOL)animated;

@end
